<template>
  <view>
        <view class="goods-item">
          <!-- 左侧图片区域 -->
          <view class="goods-item-left">
            <image :src="goods.goods_small_logo || defaultpicture" class="goods-pic"></image>
          </view>
          <view class="goods-item-right">
            <view class="goods-name">{{goods.goods_name}}</view>
            <view class="goods-info">
              <view class="goods-price">¥{{goods.goods_price | tofiex}}</view>
            </view>
          </view>
        </view>
  </view>
</template>

<script>
  export default {
    name:"my-goods",
    props:{
      goods:{
        type:Object,
        default:{}
      }
    },
    data() {
      return {
        defaultpicture:'http://image5.suning.cn/uimg/b2c/newcatentries/0000000000-000000000193373779_1_400x400.jpg'
      };
    },
    filters:{
      tofiex(num){
        return Number(num).toFixed(2)
      }
    }
  }
</script>

<style lang="scss">

</style>
